﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text;

namespace WW.NActiveRecord.Exceptions{
    /// <summary>
    /// ActiveRecord库的根异常
    /// </summary>
    /// 
    [Serializable]
    public class ActiveRecordException : System.Exception {
        public ActiveRecordException(string message)
            : base(message) { }

        public ActiveRecordException(string message, Exception inner) :
            base(message, inner) { }

        protected ActiveRecordException(SerializationInfo info, StreamingContext context)
            : base(info, context) { }
    }

    public class RecordNotFound : ActiveRecordException
    {
        public RecordNotFound(string message)
            : base(message)
        {
        }
    }
}